package fr.ysa.services;

import java.util.Collection;
import java.util.List;

import fr.ysa.services.config.ConfigRequetesDto;

public interface IService<T extends EntityDto> {

	public T sauvegarder(T obj) throws ServiceException;

	public Collection<T> sauvegarder(Collection<T> entities) throws ServiceException;

	public T modifier(T obj) throws ServiceException;

	public void supprimer(T obj) throws ServiceException;

	public void supprimer(Collection<T> entities) throws ServiceException;

	public Integer compter(ConfigRequetesDto config) throws ServiceException;

	public List<T> trouver(ConfigRequetesDto config) throws ServiceException;

}
